package com.jae.mapper;

import com.jae.model.userRole.UserRole;
import com.jae.model.userRole.UserRoleDTO;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 用户角色Mapper
 * 
 * @author Jae
 * @email 1571878499@qq.com
 * @date 2020-12-01 09:23:05
 */
@Repository
public interface UserRoleMapper{

	List<UserRoleDTO> findAll(Map map);
	
	UserRoleDTO findOne(Map map);
	
	UserRoleDTO findById(UserRole userRole);
	
	int insert(UserRole userRole);
	
	int update(UserRole userRole);
	
	int updateDelete(UserRole userRole);
	
	int delete(UserRole userRole);

	int insertBatch(List<UserRole> list);

	int deleteByRoleId(Integer role_id);

}